package grp.test.service;

import grp.test.common.ServerResponse;
import grp.test.pojo.Book;
import grp.test.pojo.Favorite;

import java.util.List;

public interface IFavoriteService {
   ServerResponse<String> addFavoriteBook(Integer userId, Integer bookId);
   ServerResponse<List<Book>> getbookList(Integer userId);
   ServerResponse<String> removeFavoriteBook(Integer userId, Integer bookId);
   ServerResponse<Favorite> selectSingleFavorite(Integer userId, Integer bookId);
}
